#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) JoinQuant Development Team
# Author: Huayong Kuang <kuanghuayong@joinquant.com>

"""Hello World"""

import sys
import inspect


def foo():
    """this is a foo doc string"""


def too():
    pass


class Obj(object):
    """Obj class doc string"""

    def __init__(self):
        """Obj instance doc string"""

    def bar(self):
        """method bar doc string"""


o = Obj()
print(inspect.getdoc(sys))
print(inspect.getdoc(inspect))
print(inspect.getdoc(foo))
print(foo.__doc__)
print(too.__doc__)
print(Obj.__doc__)
print(o.__doc__)
print(o.bar.__doc__)
